/** @type {import('next').NextConfig} */

const isProd = process.env.NODE_ENV === 'production';

const nextConfig = {
    reactStrictMode: true,
    // 部署到giteepage
    basePath: isProd ? '/personal_blog' : '',
    images: {
        // 外链图片需要注入域名配置
        domains: ['github.com', 'github-production-user-asset-6210df.s3.amazonaws.com'],
        unoptimized: true,
    }
}

module.exports = nextConfig
